@{
    //DELETE ARTICLE
    var articleId = UrlData[0];
     var authorId = WebSecurity.CurrentUserId.ToString();
    var result = Blog.DataObject.DeleteArticle(articleId,authorId);
    var view = "~/Actions/Admin/ListAllArticles";
    if(result<=0){
        Page.ErrorMessage = "Article not deleted";
    }else{
        Page.SuccesMessage = "Article deleted";
    }
    Response.Redirect(Href(view));
}

